package com.zhentao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhentao.model.dto.system.SysUserDto;
import com.zhentao.model.entity.system.SysUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysUserMapper  {

//  修改用户
    void updateSysUser(SysUser sysUser);

//    删除用户
    void deleteUserById(Long userId);

    SysUser selectByUserName(String userName);

    List<SysUser> findByPage(SysUserDto sysUserDto);

    SysUser findByUserName(String username);

    void saveSysUser(SysUser sysUser);
}
